package com.tuanzi.loan.business.repository.galaxycard;

import com.tuanzi.loan.vo.request.galaxycard.GalaxyCardUserPrivilegeSearchRequest;
import com.tuanzi.loan.vo.response.galaxycard.GalaxyCardUserPrivilegeSearchResponse;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * 银河黑卡用户权益 JOOQRepositoryInterface
 * @author JinRuiyang 2018/1/9 15:00:09
 */
public interface GalaxyCardUserPrivilegeRepository {

    List<String> getPrivilegeCDKeyByPrivilegeId(Long privilegeId);

    /**
     * GalaxyCardUserPrivilege查询
     * @param searchRequest 请求信息
     * @param pageable 分页信息
     * @return 响应列表
     */
    Page<GalaxyCardUserPrivilegeSearchResponse> list(GalaxyCardUserPrivilegeSearchRequest searchRequest, Pageable pageable);
}